<?php
include_once("isLogin.php")
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>修改信息</title>
</head>
<body>
<?php
include_once("conn.php");//调用连接数据库模块
$id = $_POST["id"];
$user = $_POST["user"];
$password = $_POST["password"];
$sql = "update users set username='".$user."',password='".$password."' where id=".$id;
mysqli_query($conn,$sql);
echo "<script>alert('修改成功!');window.location.href='list.php';</script>";
?>
</body>
</html>